package com.my.user.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.my.model.common.dtos.ResponseResult;
import com.my.model.common.enums.AppHttpCodeEnum;
import com.my.model.user.pojos.ApUserFan;
import com.my.user.mapper.ApUserFanMapper;
import com.my.user.service.ApUserFanService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

@Slf4j
@Service
@Transactional
public class ApUserFanServiceImpl extends ServiceImpl<ApUserFanMapper, ApUserFan> implements ApUserFanService {
    /**
     * 增加粉丝
     * @param fan
     * @return
     */
    @Override
    public ResponseResult increaseFan(ApUserFan fan) {
        save(fan);
        return ResponseResult.okResult(AppHttpCodeEnum.SUCCESS);
    }
}
